﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_ProductRemove.aspx.cs" Inherits="Mod_WareHouseManage_frm_ProductRemove" %>
<%@ Register Src="../WebCustomUserControls/CuTextSelectBox.ascx" TagName="CuTextSelectBox"TagPrefix="uc1" %>
<%@ Register Src="../WebCustomUserControls/CuTextBox.ascx" TagName="CuTextBox" TagPrefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
        <script language="javascript" src="../App_script/index.js"></script>
        <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
        <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
    </head>
    <body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0" onresize="ChangDivWidth()" onkeydown="FocusChangNext()">
        <form id="ProductRemovePage" runat="server">
            <!-- 下拉子菜单 Begin -->
            <div id="divChildMenu" align="center" style="border-right: #cdccc1 1px solid; visibility:hidden; border-top: #cdccc1 1px solid; left: 601px; border-left: #cdccc1 1px solid; width: 84px; border-bottom: #cdccc1 1px solid; position: absolute; top: 31px; height: 40px; background-color: #e8e8e3">
                <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="text">
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center"></td>
                        <td width="80%" align="left"><asp:linkbutton ID="lbtnDelete0" CommandName="0" OnClick="lbtnDelete_Click" runat="server" Text="删   除" Font-Overline="False" ForeColor="#4E4E4E"/></td>
                    </tr>
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center"></td>
                        <td width="80%" align="left"><asp:linkbutton ID="lbtnDelete1" Enabled="false" CommandName="1" OnClick="lbtnDelete_Click" runat="server" Text="彻底删除" Font-Overline="False" ForeColor="#4E4E4E"/></td>
                    </tr>
                </table>
            </div>
            <div id="divChildQuery" align="center" style="border-right: #cdccc1 1px solid; visibility:hidden; border-top: #cdccc1 1px solid; left: 191px; border-left: #cdccc1 1px solid; width: 84px; border-bottom: #cdccc1 1px solid; position: absolute; top: 31px;background-color: #e8e8e3; height: 123px;">
                <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="text">                    
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 18px"></td>
                        <td align="left" style="height: 18px; width: 80%;"><asp:linkbutton ID="lbtnNotAudit" Enabled="true" CommandName="0" OnClick="lbtnQuery_Click" runat="server" Text="未确认" Font-Overline="False" CssClass="text"/></td>
                    </tr>                   
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 18px"></td>
                        <td align="left" style="height: 18px; width: 80%;"><asp:linkbutton ID="lbtnEndAudit" Enabled="true" CommandName="2" OnClick="lbtnQuery_Click" runat="server" Text="已确认" Font-Overline="False" CssClass="text"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 1px"><hr style="width: 65px" /></td>
                    </tr>
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 18px"></td>
                        <td align="left" style="height: 18px; width: 80%;"><asp:linkbutton ID="lbtnNotCnacel" Enabled="true" CommandName="5" OnClick="lbtnQuery_Click" runat="server" Text="未作废" Font-Overline="False" CommandArgument="text" CssClass="text"/></td>
                    </tr>
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 18px"></td>
                        <td align="left" style="height: 18px; width: 80%;"><asp:linkbutton ID="lbtnEndCnacel" Enabled="true" CommandName="6" OnClick="lbtnQuery_Click" runat="server" Text="已作废" Font-Overline="False" CssClass="text"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 1px"><hr style="width: 65px" /></td>
                    </tr>
                    <tr onmouseover="ChangTrBgColor(this, '#D3E2D7')" onmouseout="ChangTrBgColor(this, '')">
                        <td width="20%" align="center" style="height: 22px"></td>
                        <td align="left" style="height: 22px; width: 80%;"><asp:linkbutton ID="lbtnAll" Enabled="true" CommandName="7" OnClick="lbtnQuery_Click" runat="server" Text="全      部" Font-Overline="False" CssClass="text"/></td>
                    </tr>
                </table>
            </div>
            <!-- 下拉子菜单 End -->
            <table align="center" width="100%" height="449" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35" align="left" background="../App_Images/b_12.gif">
                        <!-- 操作工具条 Begin -->
                        <table width="820" height="35" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>&nbsp;</td>
                                <td width="1">
                                    <input type="hidden" id="hidButtonEdit" runat="server" style="width:0; height:0;">
                                    <input type="hidden" id="hidButtonOAudit" runat="server" style="width:0; height:0;">
                                </td>
                                <asp:Panel ID="panPrint" Visible="true" runat="server">
                                <td width="120">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnPrint" ImageUrl="../App_Images/b_52_1.gif" onmouseover="ChangImage(this, '../App_Images/b_52_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_52_1.gif')" runat="server" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="PanelQuery" Visible="true" runat="server">
                                <td width="110">
                                    <table width="110" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ImgbtnNotAudit" CommandName="0" ImageUrl="../App_Images/b_35_1.gif" onmouseover="QueryChangImage(this, '../App_Images/b_35_2.gif');QueryChangImage(document.all.imgNotAudit, '../App_Images/b_19_3.gif')" onmouseout="QueryChangImage(this, '../App_Images/b_35_1.gif');QueryChangImage(document.all.imgNotAudit, '../App_Images/b_19_4.gif')" runat="server" /></td>
                                            <td align="center" width="17"><asp:Image id="imgNotAudit" runat="server" ImageUrl="../App_Images/b_19_4.gif" style="cursor:hand" onmouseover="QueryChangImage(this, '../App_Images/b_19_3.gif');QueryChangImage(document.all.ImgbtnNotAudit, '../App_Images/b_35_2.gif')" onmouseout="QueryChangImage(this, '../App_Images/b_19_4.gif');QueryChangImage(document.all.ImgbtnNotAudit, '../App_Images/b_35_1.gif')" onclick="QueryChildMenuVisible()" /></td>
                                            <td align="center" width="23"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panAdd" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="100"><asp:ImageButton ID="ibtnAdd" OnClick="AddProductRemoveInfo" CommandName="0" ImageUrl="../App_Images/b_18_1.gif" onmouseover="ChangImage(this, '../App_Images/b_18_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_18_1.gif')" runat="server" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panRef" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnRef" CommandName="0" ImageUrl="../App_Images/b_20_1.gif" onmouseover="ChangImage(this, '../App_Images/b_20_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_20_1.gif')" runat="server" OnClick="ibtnRef_Click" /></td>
                                            <td align="center" width="30"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="panAudit" Visible="false" runat="server">
                                <td width="100">
                                    <table width="100" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnAudit" OnClick="UpDateProductRemoveInfo" CommandName="0" CommandArgument="-1" ImageUrl="../App_Images/b_21_1.gif" onmouseover="ChangImage(this, '../App_Images/b_21_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_21_1.gif')" runat="server" /></td>
                                            <td align="center" width="30"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panDelete" Visible="false" runat="server">
                                <td width="130">
                                    <table width="130" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center" width="70"><asp:ImageButton ID="ibtnDelete0" CommandName="0" ImageUrl="../App_Images/b_19_1.gif" onmouseover="ChangImage(this, '../App_Images/b_19_2.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_3.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_1.gif');ChangImage(document.all.imgDelete, '../App_Images/b_19_4.gif')" runat="server" OnClick="ibtnDelete0_Click" /></td>
                                            <td align="center" width="17"><asp:Image id="imgDelete" runat="server" ImageUrl="../App_Images/b_19_4.gif" style="cursor:hand" onmouseover="ChangImage(this, '../App_Images/b_19_3.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_19_4.gif');ChangImage(document.all.ibtnDelete0, '../App_Images/b_19_1.gif')" onclick="ChildMenuVisible()" /></td>
                                            <td align="center" width="43"><img src="../App_Images/b_25.gif" height="25" width="1"/></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:Panel>
                                <asp:Panel ID="panSearch" Visible="false" runat="server">
                                <td width="80">
                                    <table width="80" height="25" cellpadding="0" cellspacing="0"  border="0">
                                        <tr>
                                            <td align="center"><img src="../App_Images/b_26_1.gif" style="cursor:hand" onmouseover="ChangImage(this, '../App_Images/b_26_2.gif')" onmouseout="ChangImage(this, '../App_Images/b_26_1.gif')" /></td>
                                        </tr>
                                    </table>
                                </td>
                                </asp:panel>
                                <td width="10">&nbsp;</td>
                            </tr>
                        </table>
                        <!-- 操作工具条 End -->
                    </td>
                </tr>
                <tr>
                    <td height="25" align="left">
                        <!-- 主表翻页控制 Begin -->
                        <table width="820" height="25" cellpadding="0" cellspacing="0" border="0" class="text">
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lblRsCounts" runat="server" CssClass="text"/>
                                    <asp:Label ID="lblPageCounts" runat="server" CssClass="text"/>
                                    <asp:Label ID="lblCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                                    <asp:linkbutton ID="lbtnFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                                    <asp:linkbutton ID="lbtnPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                                    <asp:linkbutton ID="lbtnNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                                    <asp:linkbutton ID="lbtnEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;
                                    <asp:Label ID="lblGoTxt1" runat="server" CssClass="text" Text="跳转到"/>
                                    <asp:textBox ID="txtGo" onmouseover="this.select()" runat="server" OnTextChanged="txtGo_TextChanged" CssClass="text" Height="13px" Width="18px" BorderColor="#7F9DB9" BorderWidth="1px" MaxLength="5"  AutoPostBack="True"/>
                                    <asp:Label ID="lblGoTxt2" runat="server" CssClass="text" Text="页"/>
                                </td>
                            </tr>
                        </table>
                        <!-- 主表翻页控制 End -->
                    </td>
                </tr>
                <tr>
                    <td height="439" valign="top">
                        <div id="divShowResult" style="overflow: auto; width: 820px; height: 447px; border-right: #a1a7bb 1px solid;">
                        <table width="1000" height="25" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>
                                    <table width="1000" height="25" cellspacing="0" cellpadding="0" border="1" class="text" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                        <tr style="cursor:default">
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">操作</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 90px;">移库单号</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">移库日期</td>                                                                                       
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">出库仓号</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">出库仓名</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">入库仓号</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 80px;">入库仓名</td>                                                                                        
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">录入人</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">录入日期</td>                                            
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">确认人</td>
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px; width: 60px;">确认日期</td>                                            
                                            <td align="center" background="../App_Images/b_17.gif" style="font-weight: bold; color: #183184; height: 25px">备注</td>
                                        </tr>
                                        <!--Begin 主表添加新记录面板 -->
                                        <asp:Panel ID="panAddResult" Visible="false" runat="server"> 
                                            <tr height="25" bgcolor="#E9F0EB">
                                                <td align="center" background="../App_Images/b_23.gif" style="height: 25px; width: 60px;">
                                                    <asp:ImageButton ID="ibtnAddCancel" OnClick="AddProductRemoveInfo" CommandName="1" ImageUrl="../App_Images/ico/4.gif" ToolTip="取消新增" runat="server" OnClientClick="return confirm('您真的要取消新增吗？');" />&nbsp;
                                                    <asp:ImageButton ID="ibtnAddServer" OnClick="AddProductRemoveInfo" CommandName="2" ImageUrl="../App_Images/ico/11.gif" ToolTip="保存新增" runat="server" />
                                                </td>       
                                                <td align="right" background="../App_Images/b_24.gif" style="width: 90px; height: 25px;">
                                                    <uc2:CuTextBox ID="ctbAddtm_no" runat="server" Width="70" ReadOnly="true" />
                                                </td>                                         
                                                <td align="center" style="height: 25px; width: 80px;">
                                                    <uc1:CuTextSelectBox ID="ctsbAddtm_date" runat="server" Width="70" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227"  ReturnTextIDs="ctsbAddtm_date"/>
                                                </td>                                                                                                                                                                                              
                                                <td  align="center" style="height: 25px; width: 80px;">
                                                    <uc1:CuTextSelectBox ID="ctsbAddwho_id" runat="server" Width="70" OpenPageUrl="../Mod_QueryFrom/frm_QueryWareHouse.aspx" ReturnTextIDs="ctsbAddwho_id"/>                                                    
                                                </td>
                                                <td  align="center" style="height: 25px; width: 80px;">
                                                    <uc2:CuTextBox ID="ctbAddwho_name" runat="server" Width="70"/>
                                                </td>
                                                <td  align="center" style="height: 25px; width: 80px;">
                                                    <uc1:CuTextSelectBox ID="ctsbAddwhi_id" runat="server" Width="70" OpenPageUrl="../Mod_QueryFrom/frm_QueryWareHouse.aspx" ReturnTextIDs="ctsbAddwhi_id"/>                                                    
                                                </td>
                                                <td  align="center" style="height: 25px; width: 80px;">
                                                    <uc2:CuTextBox ID="ctbAddwhi_name" runat="server" Width="70"/>
                                                </td>                                                
                                                <td  align="center" style="height: 25px; width: 60px;">
                                                    <uc2:CuTextBox ID="ctbAddoper" runat="server" ReadOnly=true Width="50"/>
                                                </td>
                                                <td  align="center" style="height: 25px; width: 60px;">
                                                    <uc2:CuTextBox ID="ctbAddoper_date" runat="server" ReadOnly=true Width="50"/>
                                                </td>                                               
                                                <td  align="center" style="height: 25px; width: 60px;">
                                                    <uc2:CuTextBox ID="ctbAddauditor" runat="server" ReadOnly=true Width="50"/>
                                                </td>
                                                <td  align="center" style="height: 25px; width: 60px;">
                                                    <uc2:CuTextBox ID="ctbAddaudit_date" runat="server" ReadOnly=true Width="50"/>
                                                </td>
                                                <td align="center" style="height: 25px">
                                                    <uc2:CuTextBox ID="ctbremark" runat="server" Width="50" KeyDownButton="ibtnAddServer|ctbremark" />
                                                </td>
                                            </tr>
                                       </asp:Panel>
                                       <!--  End 主表添加新记录面板  -->
                                    </table>
                                </td>
                            </tr>
                            <!-- 记录显示区 Begin -->
                            <tr>
                                <td style="height: 359px" valign="top">
                                    <asp:DataGrid ID="dgrdResult" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="15" ShowHeader="False" Width="1000px" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" GridLines="None" OnItemDataBound="dgrdResult_ItemDataBound" OnItemCreated="dgrdResult_ItemCreated">
                                        <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                        <Columns>
                                            <asp:TemplateColumn>
                                                <ItemTemplate>
                                                    <asp:Panel ID="panItem" ondblclick="ImageButtonSubmit(this.id, 'ibtnOpenChild', 'panItem')" Visible="true" runat="server">
                                                        <table width="1000" class="text" cellpadding="0" cellspacing="0" border="1" bordercolor="#A1A7BB" style="border-collapse: collapse">
                                                            <!--Begin 主表记录显示区  -->
                                                            <tr id='trRs' runat="server">
                                                                <td width="60" align="center" valign="top" background="../App_Images/b_23.gif">
                                                                    <table width="60" border="0" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <asp:CheckBox ID="chkRsSelect" onclick="ChangTrBgColorByDataGrid(this, 'trRs', 'chkRsSelect')" style="cursor:hand" Visible="false" runat="server" />
                                                                                <asp:ImageButton ID="ibtnRsCancel" OnClick="UpDateProductRemoveInfo" CommandName="1" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/4.gif" runat="server" OnClientClick="return confirm('您真的要取消编辑吗？')" />
                                                                            </td>
                                                                            <td>
                                                                                <asp:imagebutton ID="ibtnRsEdit" OnClick="UpDateProductRemoveInfo" CommandName="2" CommandArgument="<%# Container.ItemIndex %>" ToolTip="编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/12.gif" runat="server" />
                                                                                <asp:imagebutton ID="ibtnRsOAudit" OnClick="UpDateProductRemoveInfo" CommandName="3" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消确认" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/8.gif" runat="server" OnClientClick="return confirm('您真的要取消确认该条信息吗？')" />
                                                                                <asp:ImageButton ID="ibtnRsServer" OnClick="UpDateProductRemoveInfo" CommandName="4" CommandArgument="<%# Container.ItemIndex %>" ToolTip="保存编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/11.gif" runat="server" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td align="right" width="90">
                                                                    <table border="0" cellpadding="0" cellspacing="0" height="25" width="90">
                                                                        <tr>
                                                                            <td width="15"><asp:imagebutton ID="ibtnOpenChild" OnClick="OpenChildResult" CommandName="0" CommandArgument="<%# Container.ItemIndex %>" ImageUrl="../App_Images/ico/9.gif" runat="server"/></td>
                                                                            <td><uc2:CuTextBox ID="ctbRstm_no" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "tm_no")%>' ReadOnly="true" Width="70" /></td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td align="center" width="80">
                                                                    <uc1:CuTextSelectBox ID="ctsbRstm_date"  ReturnTextIDs="ctsbRstm_date" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "tm_date")%>' ReadOnly="true" Width="70" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" />
                                                                </td>                                                                
                                                                <td align="center" width="80">                                                                    
                                                                    <uc1:CuTextSelectBox ID="ctsbRswho_id" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "who_id")%>'  ReadOnly=true Width="70" OpenPageUrl="../Mod_QueryFrom/frm_QueryWareHouse.aspx" ReturnTextIDs="ctsbRswho_id"/>
                                                                </td>  
                                                                <td align="center" width="80">
                                                                    <uc2:CuTextBox ID="ctsbRswho_name" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "wh_name")%>' ReadOnly="true" Width="70" />
                                                                </td>  
                                                                <td align="center" width="80">                                                                    
                                                                    <uc1:CuTextSelectBox ID="ctsbRswhi_id" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "whi_id")%>' ReadOnly=true Width="70" OpenPageUrl="../Mod_QueryFrom/frm_QueryWareHouse.aspx" ReturnTextIDs="ctsbRswhi_id"/>                                                                    
                                                                </td>  
                                                                <td align="center" width="80">
                                                                    <uc2:CuTextBox ID="ctsbRswhi_name" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "wh_name1")%>' ReadOnly="true" Width="70" />
                                                                </td>                                                                 
                                                                <td align="center" width="60">
                                                                    <uc2:CuTextBox ID="ctsbRsoper" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "oper")%>' ReadOnly="true" Width="50" />
                                                                </td>  
                                                                <td align="center" width="60">
                                                                    <uc2:CuTextBox ID="ctsbRsoper_date" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "oper_date")%>' ReadOnly="true" Width="50" />
                                                                </td>                                                                
                                                                <td align="center" width="60">
                                                                    <uc2:CuTextBox ID="ctsbRsauditor" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "auditor")%>' ReadOnly="true" Width="50" />
                                                                </td>  
                                                                <td align="center" width="60">
                                                                    <uc2:CuTextBox ID="ctsbRsaudit_date" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "audit_date")%>' ReadOnly="true" Width="50" />
                                                                </td>                                                                
                                                                <td align="center">
                                                                    <uc2:CuTextBox ID="ctsbRsremark" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "remark")%>' ReadOnly="true" Width="50" KeyDownButton="ibtnRsServer|ctsbRsremark" />
                                                                </td>
                                                            </tr>
                                                            <!--End 主表记录显示区  -->                                                                                                                                
                                                            <asp:Panel ID="panShowChildResult" Visible="false" runat="server">
                                                                <tr>
                                                                    <td colspan="12" bgcolor="#BEC2D0">
                                                                        <table width="100%" bgcolor="#E9F0EB" cellpadding="0" cellspacing="0" border="0">
                                                                            <tr>
                                                                                <td align="center">
                                                                                    <table height="20" width="100%" cellspacing="0" cellpadding="0" class="text" border="1" bordercolor="#719078" style="border-collapse: collapse">
                                                                                        <tr style="cursor:default">
                                                                                            <td align="center" width="60" style="font-weight: bold; color: #3A8A39">操作</td>
                                                                                            <td align="center" width="100" style="font-weight: bold; color: #3A8A39">商品编码</td>
                                                                                            <td align="center" width="100" style="font-weight: bold; color: #3A8A39">名称</td>
                                                                                            <td align="center" width="50" style="font-weight: bold; color: #3A8A39">规格</td>                                                                                            
                                                                                            <td align="center" width="50" style="font-weight: bold; color: #3A8A39">单位</td>                                                                                             
                                                                                            <td align="center" width="100" style="font-weight: bold; color: #3A8A39">批号</td>
                                                                                            <td align="center" width="100" style="font-weight: bold; color: #3A8A39">识别码</td>                                                                                                                                                                                     
                                                                                            <td align="center" width="100" style="font-weight: bold; color: #3A8A39">数量</td>                                                                                                                                                                                                                                                                                                                                                                                 
                                                                                            <td align="center" style="font-weight: bold; color: #3A8A39">备注</td>                                                                                          
                                                                                        </tr>
                                                                                        <!--Begin 从表添加新记录面板  -->
                                                                                        <asp:Panel ID="panChildAddResult" Visible="false" runat="server">
                                                                                            <tr height="20">
                                                                                                <td align="center" width="60">
                                                                                                    <asp:ImageButton ID="ibtnChildAddCancel" OnClick="AddProductRemoveInfo" CommandName="3" ImageUrl="../App_Images/ico/4.gif" ToolTip="取消新增" runat="server" OnClientClick="return confirm('您真的要取消新增吗？');" />&nbsp;
                                                                                                    <asp:ImageButton ID="ibtnChildAddServer" OnClick="AddProductRemoveInfo" CommandName="4" ImageUrl="../App_Images/ico/11.gif" ToolTip="保存新增" runat="server" />
                                                                                                </td>
                                                                                                <td align="center" width="100">
                                                                                                    <uc1:CuTextSelectBox ID="ctsbChildAdd0"  runat="server" Width="90" OpenPageUrl="../Mod_QueryFrom/frm_QueryProduct.aspx" ReturnTextIDs="ctsbChildAdd0|ctbChildAdd0|ctbChildAdd2|ctbChildAdd4||is_Start" />
                                                                                                </td>
                                                                                                <td align="center" width="100">
                                                                                                    <uc2:CuTextBox ID="ctbChildAdd0" runat="server" ReadOnly="true" Width="95" />
                                                                                                </td>
                                                                                                <td align="center" width="50">
                                                                                                    <uc2:CuTextBox ID="ctbChildAdd2" runat="server"  ReadOnly="true" Width="40" />
                                                                                                </td>                                                                                                
                                                                                                <td align="center" width="50">
                                                                                                    <uc2:CuTextBox ID="ctbChildAdd4" runat="server"  ReadOnly="true" Width="40" />
                                                                                                </td>                                                                                                
                                                                                                <td align="center" width="100">
                                                                                                    <uc2:CuTextBox ID="ctbChildAddBatchNo" runat="server"  Width="90" />
                                                                                                </td>
                                                                                                <td align="center" width="100">
                                                                                                    <uc2:CuTextBox ID="ctbChildAddIdentifyNo" ReadOnly=True runat="server"  Width="90" />
                                                                                                </td>                                                                                                                                                                                                           
                                                                                                <td align="center" width="100">
                                                                                                    <uc2:CuTextBox ID="ctbChildAdd3" runat="server"  Width="90" />
                                                                                                </td>                                                                                                                                                                                                
                                                                                                <td align="center">
                                                                                                    <uc2:CuTextBox ID="ctbChildAdd8" runat="server"   Width="100" KeyDownButton="ibtnChildAddServer|ctbChildAdd8" />
                                                                                                </td>
                                                                                                <td width="0" style="display:none"> <uc2:CuTextBox ID="is_Start" runat="server"/></td>  
                                                                                            </tr>
                                                                                        </asp:panel>
                                                                                        <!--End 从表添加新记录面板  -->
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                            <!-- 从表记录显示区 Begin -->
                                                                                <td valign="top">
                                                                                    <asp:DataGrid ID="dgrdChildResult" Height="20" Width="100%" runat="server" ToolTip="<%# Container.ItemIndex %>" AllowPaging="True" AutoGenerateColumns="False" PageSize="14" ShowHeader="False" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text">
                                                                                        <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                                                                        <Columns>
                                                                                            <asp:TemplateColumn  ItemStyle-VerticalAlign="top">
                                                                                                <ItemTemplate>
                                                                                                    <table width="100%" height="20" class="text" cellpadding="0" cellspacing="0" border="1" bordercolor="#719078" style="border-collapse: collapse">
                                                                                                        <tr id='trChildRs' runat="server">
                                                                                                            <td width="60" align="center">
                                                                                                                <table width="56" border="0" cellpadding="0" cellspacing="0" height="20">
                                                                                                                    <tr>
                                                                                                                        <td>
                                                                                                                            <asp:CheckBox ID="chkChildRsSelect" onclick="ChangTrBgColorByDataGrid(this, 'trChildRs', 'chkChildRsSelect')" style="cursor:hand" Visible="true" runat="server" />
                                                                                                                            <asp:ImageButton ID="ibtnChildRsCancel" OnClick="UpDateProductRemoveInfo" CommandName="5" CommandArgument="<%# Container.ItemIndex %>" ToolTip="取消编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/4.gif" runat="server" OnClientClick="return confirm('您真的要取消编辑吗？')" />
                                                                                                                        </td>
                                                                                                                        <td>
                                                                                                                            <asp:imagebutton ID="ibtnChildRsEdit" OnClick="UpDateProductRemoveInfo" CommandName="6" CommandArgument="<%# Container.ItemIndex %>" ToolTip="编辑" Height="17" Width="17" Visible="true" ImageUrl="../App_Images/ico/12.gif" runat="server" />
                                                                                                                            <asp:ImageButton ID="ibtnChildRsServer" OnClick="UpDateProductRemoveInfo" CommandName="7" CommandArgument="<%# Container.ItemIndex %>" ToolTip="保存编辑" Height="17" Width="17" Visible="false" ImageUrl="../App_Images/ico/11.gif" runat="server" />
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </td>
                                                                                                            <td align="center" width="100">
                                                                                                                <uc1:CuTextSelectBox ID="ctsbChildRs0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "im_no")%>' ReadOnly="true"  Width="90" OpenPageUrl="../Mod_QueryFrom/frm_QueryProduct.aspx" />
                                                                                                            </td>
                                                                                                            <td align="center" width="100">
                                                                                                                <uc2:CuTextBox ID="ctbChildRs0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "im_name")%>' ReadOnly="true"  Width="95" />
                                                                                                            </td>
                                                                                                            <td align="center" width="50">
                                                                                                                <uc2:CuTextBox ID="ctbChildRs2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "im_size")%>' ReadOnly="true"  Width="40" />
                                                                                                            </td>                                                                                                            
                                                                                                            <td align="center" width="50">
                                                                                                                <uc2:CuTextBox ID="ctbChildRs4" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "nt_id")%>' ReadOnly="true" Width="40" />
                                                                                                            </td>                                                                                                                                                                                                                        
                                                                                                            <td align="center" width="100">
                                                                                                                <uc2:CuTextBox ID="ctbChildRsBatchNo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "lot_no")%>' ReadOnly="true" Width="90" />
                                                                                                            </td>
                                                                                                            <td align="center" width="100">
                                                                                                                <uc2:CuTextBox ID="ctbChildRsIdentifyNo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "oo_no")%>' ReadOnly="true" Width="90" />
                                                                                                            </td>                                                                                                                                                                                                                       
                                                                                                            <td align="center" width="100">
                                                                                                                <uc2:CuTextBox ID="ctbChildRs3" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "qty")%>' ReadOnly="true"  Width="90" />
                                                                                                            </td>                                                                                                                                                                                                                                                                                                                                  
                                                                                                            <td align="center">
                                                                                                                <uc2:CuTextBox ID="ctbChildRs8" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "remark")%>' ReadOnly="true"   Width="100" KeyDownButton="ibtnChildRsServer|ctbChildRs8" />
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateColumn>
                                                                                            <asp:BoundColumn DataField="id" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                                                       </Columns>
                                                                                    </asp:DataGrid>
                                                                                </td>
                                                                            <!-- 从表记录显示区 End -->
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="left" height="25">
                                                                                    <!-- 从表翻页控制 Begin -->
                                                                                    <table height="25" width="100%" cellspacing="0" cellpadding="0" class="text" border="1" bordercolor="#719078" style="border-collapse: collapse">
                                                                                        <tr>
                                                                                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                                <asp:Label ID="lblChildRsCounts" runat="server" CssClass="text"/>
                                                                                                <asp:Label ID="lblChildPageCounts" runat="server" CssClass="text"/>
                                                                                                <asp:Label ID="lblChildCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                                                                                                <asp:linkbutton ID="lbtnChildFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChildChangPage" CommandName="0" />
                                                                                                <asp:linkbutton ID="lbtnChildPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChildChangPage" CommandName="1" />
                                                                                                <asp:linkbutton ID="lbtnChildNext" runat="server" CssClass="text" Text="下一页" OnClick="ChildChangPage" CommandName="2" />
                                                                                                <asp:linkbutton ID="lbtnChildEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChildChangPage" CommandName="3" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <!-- 从表翻页控制 End -->
                                                                                </td>
                                                                            </tr>
                                                                        </table> 
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            
                                                        </table>
                                                    </asp:Panel>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="is_audit" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="is_visible" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                        </Columns>
                                        <AlternatingItemStyle BackColor="#EEEFF2" />
                                        <ItemStyle BorderWidth="0px" Height="0px" />
                                    </asp:DataGrid>
                                </td>
                            </tr>
                            <!-- 记录显示区 End -->
                        </table>
                        <asp:label ID="lblJs" runat="server"/>
                        </div>
                    </td>
                </tr>
            </table>
            <asp:Label ID="labMessage" runat=server></asp:Label>
        </form>
    </body>
</html>

